package com.phf.vhr.mapper;

import com.phf.vhr.model.entity.PermissionRolesDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 角色权限表 Mapper 接口
 * </p>
 *
 * @author phf
 * @since 2021-09-28
 */
public interface PermissionRolesMapper extends BaseMapper<PermissionRolesDO> {

    /**
     * 通过角色id获取权限
     * 
     * @param roleId 角色id
     * @return
     */
    @Select("select * from permission_roles where roles_id = #{roleId}")
    List<PermissionRolesDO> queryPermissionByRoleId(Long roleId);
    
    

}
